<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div class="content">
	<s:form action="update" method="post" theme="simple">
			<table border="0" cellpadding="3">
				<caption> <h1>Update Book Information</h1> </caption>
				<tr>
					<td>图书编号</td>
					<td>图书名称</td>
					<td style="width:100px"></td>
				</tr>
				<tr>
					<td>
						<input type="text" name="oldone.book_id" value="${session.oldone.book_id}" size="21" readonly="readonly" />
						
					</td>
					
					<td>
						<input type="text" name="oldone.book_name" value="${session.oldone.book_name }" size="21"/>
					</td>
					<td>
							<input type="submit" value="提交"/>
							<input type="reset" value="取消"/>
					</td>
				</tr>
			</table>
		</s:form>
	</div>
	<s:if test="#session['state']">
		<script type="text/javascript">
			alert("Success");
			window.location.href = "main.jsp";
		</script>
		<%
			session.setAttribute("state", false);
		%>
	</s:if>
</body>
</html>